<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>掌中游商城首页</title>
		<link rel="shortcut icon" href="/favicon.ico"/>
		<link rel="bookmark" href="/favicon.ico"/>
		<link href="__PUBLIC__/Home/css/index.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/Home/css/banner.css" rel="stylesheet" type="text/css">
    <style>
    *{margin:0; padding:0;}	/*为了方便 直接这样重置了*/
    #main{margin:0 auto; width:100%;}
    #banner{display:none; margin:0 auto; width:100%; height:280px; position:relative;}
    #close{display:block; width:50px; height:22px; text-align:center; line-height:22px; border:1px #ddd solid; background:#000; color:#fff; font-size:12px; float:right; cursor:pointer;}
    </style>
<script src="__PUBLIC__/Home/js/jquery.min.js"></script>
<script src="__PUBLIC__/Home/js/sl.js"></script>
<script src="__PUBLIC__/Home/js/lrzj.js"></script>	
<script src="__PUBLIC__/Home/js/index.js"></script>	
</head>

<body>
<!-- 头部广告 -->
<div style="margin: 0px auto; width: 100%; display: block;" id=js_ads_banner_top class='advertisement'>
<foreach name="result_ad28" item="vo_top28">
		<div class="advertisement">
	    	<a onclick="javascript:location.href='{$vo_top28.ad_link}'" target=_blank><img src="__PUBLIC__/Uploads/ad/{$vo_top28.pic_url}" style="width:100%; height:80px;"> </a>
	    	<input type="button" class="advertisement_delete" id="advertisement_delete"></input>
	    </div>
</foreach>	
</div>
<!-- /头部广告 -->

<div style="margin: 0px auto; width: 100%; display: none;" id=js_ads_banner_top_slide> 
<foreach name="result_top" item="vo_top">
	<div class="advertisement">
		<a href="{$vo_top.ad_link}" target=_blank>
	    	<img src="__PUBLIC__/Uploads/ad/{$vo_top.pic_url}" style="width:100%; height:280px;">
	    </a>
	    <input type="button" class="advertisement_delete" id="advertisement_delete"></input>
	</div>
</foreach>
</div>
<include file="Public:header" />
		<div id="banner_bg" style="width:100%; background:#FFFFFF;">
				<!-- 内容 -->
				<div class="content">
					<div class="classification">
					<ul id="nav">
						<foreach name="result_class" item="vo_class" key="k">
						<li class="mainCate list-item0 ">
							<h3><a style="font-size:16px;" href="{:U('Index/goods')}?class_id={$vo_class.id}">{$vo_class.class_name}</a></h3>  
							 <div class="subCate" id="sub_{$k}" style="top:-{$k * 42}px;">
								<ul id="sub-ul-1">
								  <h4 style="font-size:16px; font-weight:blod; position:relative; left:-25px; margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid #38C249;">{$vo_class.class_name}</h4>
								  <li>
									  <span>
										  <foreach name="vo_class['class_sub']" item="class_sub">
										  	<a href="{:U('Index/goods')}?class_sub_id={$class_sub.id}">{$class_sub.class_name}</a>
										  </foreach>
									  </span>
								  </li>
								</ul>
							  </div>
						</li>
						</foreach>
					</ul>
					</div>
					<div class="slideshow">
						<div class="focus" id="focus001">
							<ul>
							<foreach name="result_banner" item="vo_banner" key="k_2">
								<li><a href="{$vo_banner.ad_link}" target="_blank">
								<img style="width:750px; height:466px;" src="__PUBLIC__/Uploads/ad/{$vo_banner.pic_url}" /></a>
								<input type="button" id="bg_{$k_2}" value="{$vo_banner.color_val}" />
								</li>
							</foreach>
							</ul>
						</div>
					</div>
					<div class="right-right">
						<div class="Bulletin" style="background:#FFF;">
							<h3><span class="left">最新商品</span><a href="{:U('Index/article')}" class="right size12" style="margin-right:10px;">更多></a></h3>
							
							<ul>
		                    <foreach name="resul_article" item="vo_article" key="k_a">
								<li style="border-bottom:1px dashed #CCC;"><a href="{:U('Index/article_details')}?id={$vo_article.id}"><span>{$k_a+1}</span>
		                        {$vo_article.title|msubstr=0,15,'utf-8',true}</a></li>
		                    </foreach>
							</ul>
						</div>
						<div class="advertising">
							<foreach name="result_ad2" item="vo_ad2">
							<a href="{$vo_ad2.ad_link}"><img src="__PUBLIC__/Uploads/ad/{$vo_ad2.pic_url}" style="width:250px; height:250px;"></a></foreach>
						</div>
					</div>
				</div>
				
		</div>
		<!-- 广告 -->
		<div class="advertisement_one">
			<div class="advertisement_con clearfix">
				<div class="advertisement_parent" id="advertisement_parent">
					<span class="advertisement_btn_top" id="advertisement_btn_top"><</span>
					<ul class="clearfix">
						<li class="fl">
							<a href="javascript:;" class="fl">3</a>
							<a href="javascript:;" class="fl">3</a>
							<a href="javascript:;" class="fl">3</a>
							<a href="javascript:;" class="fl">3</a>
						</li>
						
					</ul>
					<span class="advertisement_btn_buttom" id="advertisement_btn_buttom">></span>
				</div>
			</div>
		</div>
		<!-- 当季热卖 -->
		<div class="Selling">

			<h3 style="border-bottom:2px solid #4AB151; margin-bottom:5px;"><span>推荐商品 <img src="__PUBLIC__/Home/img/22.jpg" /></span></h3>
		
			<table style="width:1210px; height:400px; border:0px;" cellpadding="0" cellspacing="0">
				<tr>
					<td rowspan="2">
						<a href="{$result_ad_home[0]['ad_link']}"><img src="__PUBLIC__/Uploads/ad/{$result_ad_home[0]['pic_url']}" style="width:241px; height:400px;" ></a></td>
					<td>
						<a href="{$result_ad_home[1]['ad_link']}"><img src="__PUBLIC__/Uploads/ad/{$result_ad_home[1]['pic_url']}" style="width:485px; height:200px;" ></a></td>
					<td>
						<a href="{$result_ad_home[2]['ad_link']}"><img src="__PUBLIC__/Uploads/ad/{$result_ad_home[2]['pic_url']}" style="width:484px; height:200px;" ></a></td>
				</tr>
				<tr>
					<td>
						<a href="{$result_ad_home[3]['ad_link']}"><img src="__PUBLIC__/Uploads/ad/{$result_ad_home[3]['pic_url']}" style="width:485px; height:200px;" ></a></td>
					<td>
						<a href="{$result_ad_home[4]['ad_link']}"><img src="__PUBLIC__/Uploads/ad/{$result_ad_home[4]['pic_url']}" style="width:484px; height:200px;" ></a></td>
				</tr>
			</table>
			<div class="clear"></div>

			<if condition="!empty($product)">
				<foreach name="product" key ="key" item="vo_1">
				<a name={$key}F class=""></a>
				<h3 class="floor_title" attribute="{$key}"><span>{$vo_1.class_name} <img src="__PUBLIC__/Home/img/22.jpg" /></span><a href="{:U('Index/goods')}?class_id={$vo_1.id}" style="float:right;">更多 >> </a></h3>
			    <ul>
				<if condition="!empty($vo_1['product'])">
					<foreach name="vo_1['product']" item="value">
				    	<li style="padding-bottom:0; padding-top:10px; width:220px;">
				        	<p><a href="{:U('Index/goods_details')}?id={$value.id}"><img style=" width:220px; height:210px;" src="__PUBLIC__/Uploads/goods/{$value.pic_url}" /></p>
				            <p style="height:50px;">{$value.title|msubstr=0,38,'utf-8',true}</p>
							<p style="height:24px;"><span style="text-decoration:line-through;">市场价:{$value.price_old}</span>
							<span style="float:right;">送积分:<span style="font-weight:600;color:#FF6600;">{$value.fanli_jifen}积分</span></span></p>
				            <p style="min-height:40px;"><span class="yellow1 size20">￥{$value.price_new}</span>
							<a href="{:U('Index/goods_details')}?id={$vo_1.id}" style="margin-right:0;" class="immediately">立即购买</a></p>
				        </li>
			        </foreach>
			      </if>
			    </ul>
			    </foreach>
			</if>
		</div>
		
		<div class="clear"></div>
		
		<div class="w1210" style="margin-top: 30px;">
			<foreach name="result_ad5" item="vo_ad5">
				<p style="margin: 0 auto; width: 1200px;"><a href="{$vo_ad5.ad_link}"><img style="width:1210px; height:160px;" src="__PUBLIC__/Uploads/ad/{$vo_ad5.pic_url}"/></a></p>
			</foreach>
		</div>
		<include file="Public:footer" />
	</body>
<script>
$(function(){ 
$("#banner_bg").css("background","#ffffff");
}); 
</script>
<script>

$(function(){
	$('.mainCate').mouseover(function(){
		$(this).find('.subCate').css('display','block')
		$(this).siblings('li').find('.subCate').css('display','none');
	}).mouseout(function(){
		$('.subCate').css('display','none');
	});
})

</script>
</html>